|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgalcommand.io.XMLWriter
public abstract class XMLWriter
Uses code from the example at http://download.oracle.com/javaee/1.4/tutorial/doc/JAXPXSLT4.html.
| Field Summary | |
|---|---|
static int |
INDENT_SIZE
|
| Constructor Summary | |
|---|---|
XMLWriter()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
for testing only |
static org.w3c.dom.Document |
makeXMLDocument()
Deprecated. Will be discontinuing the use of SAX parsers (due to lack of thread safety) |
static org.w3c.dom.Element |
makeXMLElement(java.lang.String tag,
org.w3c.dom.Document xmldoc)
Deprecated. Will be discontinuing the use of SAX parsers (due to lack of thread safety) |
static java.lang.String |
SafeXMLString(org.w3c.dom.Node tree)
Deprecated. Will be discontinuing the use of SAX parsers (due to lack of thread safety) |
static void |
writeXML(org.w3c.dom.Node tree,
java.io.OutputStream out)
Deprecated. Will be discontinuing the use of SAX parsers (due to lack of thread safety) |
static void |
writeXML(org.w3c.dom.Node tree,
java.io.Writer out)
Deprecated. Will be discontinuing the use of SAX parsers (due to lack of thread safety) |
static java.lang.String |
XMLString(org.w3c.dom.Node tree)
Deprecated. Will be discontinuing the use of SAX parsers (due to lack of thread safety) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INDENT_SIZE
| Constructor Detail |
|---|
public XMLWriter()
| Method Detail |
|---|
public static java.lang.String SafeXMLString(org.w3c.dom.Node tree)
throws javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException
tree - A DOM tree.
javax.xml.transform.TransformerConfigurationException - Thrown if the implementation is
not available or cannot be instantiated.
javax.xml.transform.TransformerException - If an unrecoverable error occurs during the
course of the transformation from data tree to XML text.
public static void writeXML(org.w3c.dom.Node tree,
java.io.Writer out)
throws javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException
tree - The root node af an XML DOM treeout - A writer, such as a FileWriter, that you want to write the
XML to.
javax.xml.transform.TransformerConfigurationException - Thrown if the implementation is
not available or cannot be instantiated.
javax.xml.transform.TransformerException - If an unrecoverable error occurs during the
course of the transformation from data tree to XML text.
public static void writeXML(org.w3c.dom.Node tree,
java.io.OutputStream out)
throws javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException
tree - The root node af an XML DOM treeout - An output stream, such as System.out, that you want to write the
XML to.
javax.xml.transform.TransformerConfigurationException - Thrown if the implementation is
not available or cannot be instantiated.
javax.xml.transform.TransformerException - If an unrecoverable error occurs during the
course of the transformation from data tree to XML text.public static java.lang.String XMLString(org.w3c.dom.Node tree)
tree - A DOM tree.
public static org.w3c.dom.Element makeXMLElement(java.lang.String tag,
org.w3c.dom.Document xmldoc)
tag - The tag name, as in <tag />xmldoc - The org.w3c.dom.Document that will own this Element
public static org.w3c.dom.Document makeXMLDocument()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||